package com.gnerv.battle.boot.project.guard.model.dto;

import com.gnerv.battle.boot.project.guard.model.bo.MonitorDatasourceBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class MonitorDatasourceUpdateDTO {

    private String ukId;
    private String name;
    private String type;
    private String config;
    private String template;
    private String status;
    private Integer sort;

    public MonitorDatasourceBO toMonitorDatasourceBO(){
        MonitorDatasourceBO monitorDatasourceBO = new MonitorDatasourceBO();
        BeanUtils.copyProperties(this, monitorDatasourceBO);
        return monitorDatasourceBO;
    }

}

